package com.taoym.voucher.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taoym.voucher.admin.domain.XcxActivityOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @coder taoym
 * @datetime 2021/8/27 17:14
 * @desc
 */
public interface XcxActivityOrderMapper extends BaseMapper<XcxActivityOrder> {
    /**
     * @coder taoym
     * @datetime 2021/6/29 10:50
     * @desc 分页查询订单列表
     */
    List<XcxActivityOrder> getOrderList(@Param("page") Integer page,
                                        @Param("size") Integer size,
                                        @Param("status") Integer status,
                                        @Param("uid") String uid);

    /**
     * @coder taoym
     * @datetime 2021/9/28 17:25
     * @desc 查询总记录数
     */
    Integer countOrderList(@Param("status") Integer status,
                                          @Param("uid") String uid);


    /**
     * @coder taoym
     * @datetime 2021/9/28 16:15
     * @desc 插入或修改订单
     */
    Integer insertOrUpdateList(List<XcxActivityOrder> activityOrders);
}
